// vuetify 主题
@import "./vuetify/indes.css";
// 全局 CSS 变量
@import "./variables.css";
// Transition
@import "./transition.scss";
// 注册多主题
@import "./theme/register.scss";

// https://github.com/wuxin0011/web-cdn-resource
//字体开源地址：https://github.com/lxgw/LxgwWenKai-Screen
@font-face {
  font-family: '霞鹜文楷';
  src: url('https://cdn.jsdelivr.net/gh/wuxin0011/web-cdn-resource@main/font/LXGWWenKaiGBScreenR.ttf') format('truetype');
}

// 业务页面几乎都应该在根元素上挂载 class="app-container"，以保持页面美观
.app-container {
  padding: 20px;
}

html,body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: var(--v3-body-bg-color);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: "霞鹜文楷", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial,
    sans-serif;
}

#app {
  height: 100%;
  overflow-x: hidden;
}

* {
  /* 隐藏滚动条 */

  /* 隐藏滚动条的轨道 */
  ::-webkit-scrollbar {
    display: none;
  }

  /* 隐藏滚动条的滑块 */
  ::-webkit-scrollbar-thumb {
    display: none;
  }
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

a,
a:focus,
a:hover {
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

/* 文字单行省略号 */
.sle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* 主题动画切换 */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1000;
}
::view-transition-new(root) {
  z-index: 99999;
}
.dark::view-transition-old(root) {
  z-index: 99999;
}
.dark::view-transition-new(root) {
  z-index: 1000;
}


// @fonts-face {
//   fonts-family: "阿里妈妈东方大楷 Regular" !important;
//   fonts-weight: 400;
//   src: 
//     url("https://cdn.jsdelivr.net/gh/wuxin0011/web-cdn-resource@main/alimama/Alimama_DongFangDaKai_Regular.otf") format("otf"),
//     url("https://cdn.jsdelivr.net/gh/wuxin0011/web-cdn-resource@main/alimama/Alimama_DongFangDaKai_Regular.ttf") format("ttf"),
//     url("https://cdn.jsdelivr.net/gh/wuxin0011/web-cdn-resource@main/alimama/Alimama_DongFangDaKai_Regular.woff2") format("woff2"),
//     url("https://cdn.jsdelivr.net/gh/wuxin0011/web-cdn-resource@main/alimama/Alimama_DongFangDaKai_Regular.woff") format("woff");
//   fonts-display: swap;
// }

/* CDN 服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
